<template>
<div class="main">
    
    <div class="card">
        <div class="row" style="text-align:center;padding-top:1em;">
             <img :src="$store.state.userInfo.HeadimgUrl" alt="">
        </div>
        <div class="row">
            <b>企业名称</b> <span>{{user.EntName}}</span>
        </div>
        <div class="row">
            <b>联系人</b> <span>{{user.XM}}</span>
        </div>
        <!-- <div class="row">
            <b>行业</b> <span>买家和卖家</span>
        </div> -->
        <div class="row">
            <b>电话</b> <span>{{user.phoneno}}</span>
        </div>
        <div class="row">
            <b>单位地址</b> <span>{{user.Address}}</span>
        </div>
        <div class="row" style="line-height:1.4em;vertical-align: top;height:4em;">
            <b>收货信息</b>
            <div class="address">
                <div>收货人：{{user.XM}} {{user.phoneno}}</div>
            </div>
        </div>
                             <van-button type="primary" @click="$router.push('/user/bind')" size="large" class="pub">修改</van-button>

        <!-- <div class="row">
            <b>营业执照</b> <span></span>
        </div>
        <div class="row">
            <b>委托书</b> <span>江苏省张家港市保税区188号</span>
        </div> -->
    </div>
     <!-- <div class="right">
                <a href="tel:051258732888"><i class="iconfont icon-dianhua"></i>0512-58732888</a>
    </div> -->
</div>
    
</template>

<script>
    export default {
        data() {
            return {
                user: {}
            }
        },
        created(){
            this.user = this.$store.state.userInfo;
            if(!this.user.phoneno)
            {
                this.$router.push('/user/bind')
            }
        },
    }
</script>

<style scoped lang='less'>
.main{
    background: #fff;
    padding: 0.6em;
    height: 1000px;
    overflow: hidden;
    img{
        height: 10em;
    }
    .right{
        position: fixed;
        bottom: 60px;
        width: 100%;
        text-align: center;
        padding-top: 1em;
        a{
            color: #2cb98e;
            letter-spacing: 0.2em;
        }
    }
    
}
    .card {
        border-radius: 5px;
        border: 1px solid #ccc;
        text-align: left;
        background: #fff;
        .row {
            min-height: 2.6em;
            line-height: 2.6em;
            font-size: 14px;
            position: relative;
            b{
                display: inline-block;
                width: 5em;
                margin-left: 1em;
            }
            .address{
                position: absolute;
                left:6em;
                top: 0.0em;
                vertical-align: top;
                padding-right: 1em;
            }
        }
    }
</style>